import { createSlice } from "@reduxjs/toolkit";

const socketStore = createSlice({
  name: "socket",
  initialState: {
    socket: null,
  },
  //   修改状态（同步）
  reducers: {
    // setSocket(state, action) {
    //   state.socket = action.payload;
    // },
  },
});

const socketReducer = socketStore.reducer;
export default socketReducer;
